import React, { Suspense } from "react";
import { useRoutes } from "react-router-dom";
import { Routes_List } from "./routes";

const Router: React.FC = () => {
  const RouterView = () => useRoutes(Routes_List);
  return (
    <Suspense>
      <RouterView></RouterView>
    </Suspense>
  );
};

export default Router;
